package whf.test;
import junit.framework.TestCase;
import whf.framework.entity.Entity;
import whf.framework.log.Log;
import whf.framework.log.LogFactory;
import whf.framework.service.Service;
import whf.framework.util.BeanFactory;

/**
 * @author king
 * @create Jan 11, 2008 6:14:34 PM
 * 
 */
public class BaseTestCase extends TestCase {
	protected Log log = LogFactory.getLog(this.getClass());
	
	protected Object getBean(String beanName) {
		return BeanFactory.getBean(beanName);
	}
	
	protected Object getBean(Class<? extends Service<? extends Entity>> serviceClass) {
		return BeanFactory.getBean(serviceClass);
	}
}
